<?php include("../phpConf/controlador.php"); ?>
<html>
<head>     
<script src="../media/js/jquery.js" type="text/javascript"></script>
<script src="../media/js/jquery.dataTables.js" type="text/javascript"></script>
<style type="text/css">
  @import "../media/css/demo_table_jui.css";
  @import "../media/themes/smoothness/jquery-ui-1.8.4.custom.css";
</style>
<script type="text/javascript" charset="utf-8">
    $(document).ready(function(){$('#datatables').dataTable({"sPaginationType":"full_numbers","aaSorting":[[2, "desc"]],"bJQueryUI":true});});
</script>
</head>
<body>
<?php include("menu.php"); ?>     
    
<?php
if(count($aDatos) > 0)
{
?>
  <div align="center">
  <table id="datatables" class="display" border="1">
    <thead>
        <tr>
            <th>Nombre</th>
            <th>Apellido</th>
            <th>Profesion</th>
            <th>Mail</th>
             <th>Comentario</th>
        </tr>
    </thead>
  <tbody>
  <?php foreach($aContacto as $reg): ?>
  <tr>
     <td><?php echo (strlen($reg["nombre"])>0 ? $reg["nombre"] :"<br />")?></td>
     <td><?php echo (strlen($reg["apellido"])>0 ? $reg["apellido"] :"<br />")?></td>
     <td><?php echo (strlen($reg["profesion"])>0 ? $reg["profesion"] :"<br />")?></td>
     <td><?php echo (strlen($reg["mail"])>0 ? $reg["mail"] :"<br />")?></td>
     <td><?php echo (strlen($reg["comentario"])>0 ? $reg["comentario"] :"<br />")?></td>
  </tr>
  <?php endforeach;?>
  </tbody>
  </table>
  </div>
<?php
}
else
{
?>
 <div align="center">No Hay Datos</div>
<?php
}
?>

    </body>
</html>


